package com.mdd.admin.validate.system;

import com.mdd.admin.validate.BaseParam;
import com.mdd.common.validator.annotation.IntegerContains;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SystemTransactionCancelUnpaidOrderConfingParam extends BaseParam {

    @NotNull(message = "cancel_unpaid_orders参数缺失", groups = {create.class, update.class})
    @IntegerContains(values = {0, 1}, message = "cancel_unpaid_orders参数值不在符合范围", groups = {create.class, update.class})
    private Integer cancel_unpaid_orders;

//    @NotNull(message = "订单可取消时间不能为空", groups = {create.class, update.class})
    private Long cancel_unpaid_orders_times = 0l;

    @NotNull(message = "purchase参数缺失", groups = {create.class, update.class})
    @IntegerContains(values = {0, 1}, message = "purchase参数值不在符合范围", groups = {create.class, update.class})
    private Integer purchase;

    private String btn_str;

}
